package org.mock.controller;

import lombok.AllArgsConstructor;
import org.mock.common.ResultBaiFenHui;
import org.mock.request.baiFenHui.*;
import org.mock.service.BaifenhuiNoticeService;
import org.mock.service.BaifenhuiOrderBaseService;
import org.mock.service.BaifenhuiProductService;
import org.mock.service.QyWechatService;
import org.springframework.web.bind.annotation.*;

/**
 * 企业微信 mock
 *
 * @author AI
 * @since 2020-06-19
 */
@RestController
@AllArgsConstructor
@RequestMapping("qyWechat/mock")
public class QyWechatMockController {

    private QyWechatService qyWechatService;

    /**
     * 查看客户详情
     * @param external_userid
     * @return
     */
    @GetMapping("/cgi-bin/externalcontact/get")
    public String getExternalContactDetail(String access_token, String external_userid) {
        return qyWechatService.getExternalContactDetail(external_userid);
    }

}